﻿
<CnGalWebSite.Shared.MasaComponent.Shared.MaterialDesigns.MDMainInfoCard Name="@("『"+Model.ObjectName+"』历史编辑记录总览")" Image="@Model.Image" Thumbnail="Model.IsThumbnail"
                                                                         BriefIntroduction="@Model.ObjectBriefIntroduction" Href="@url" Class="edit-record-overview-main-card"/>
@code {
    [Parameter]
    public ExaminesOverviewViewModel Model { get; set; }

    public string url { get; set; }

    protected override void OnParametersSet()
    {
        url = Model.Type switch
        {
            ExaminedNormalListModelType.Entry => $"/entries/index/{Model.ObjectId}",
            ExaminedNormalListModelType.Article => $"/articles/index/{Model.ObjectId}",
            ExaminedNormalListModelType.Periphery => $"/peripheries/index/{Model.ObjectId}",
            ExaminedNormalListModelType.Tag => $"/tags/index/{Model.ObjectId}",
            ExaminedNormalListModelType.Video => $"/videos/index/{Model.ObjectId}",
            _ =>null
        };
    }
}
